import 'dart:convert';

AssessedBooks assessedBooksFromJson(String str) =>
    AssessedBooks.fromJson(json.decode(str));

String assessedBooksToJson(AssessedBooks data) => json.encode(data.toJson());

class AssessedBooks {
  AssessedBooks({
    this.assessedBooks,
  });

  List<AssessedBook>? assessedBooks;

  factory AssessedBooks.fromJson(Map<String, dynamic> json) => AssessedBooks(
        assessedBooks: List<AssessedBook>.from(
            json["assessedBooks"].map((x) => AssessedBook.fromJson(x))),
      );

  Map<String, dynamic> toJson() => {
        "assessedBooks": assessedBooks != null
            ? List<dynamic>.from(assessedBooks!.map((x) => x.toJson()))
            : null,
      };
}

class AssessedBook {
  AssessedBook({
    this.id,
    this.type,
    this.title,
  });

  String? id;
  String? type;
  String? title;

  factory AssessedBook.fromJson(Map<String, dynamic> json) => AssessedBook(
        id: json["id"],
        type: json["type"],
        title: json["title"],
      );

  Map<String, dynamic> toJson() => {
        "id": id,
        "type": type,
        "title": title,
      };
}
